package io.renren.modules.yunxin;

import com.alibaba.fastjson.JSONArray;
import io.renren.common.utils.MapUtil;


/**
 * @author shtj
 * @Date: 2019/4/10 15:20
 */
public class GetUInfo {

    private String url = "https://api.netease.im/nimserver/user/getUinfos.action";


    public static void main1(String[] args) throws Exception {
        System.out.println(GetUInfo.class.getName());
        GetUInfo info = new GetUInfo();
        JSONArray a = new JSONArray();
        a.add("a058e689243c4abd9685f106cb8b7fd4");
        info.setAccids(a.toJSONString());
        String str = YunxinUtils.postYunxin(info.getUrl(), MapUtil.form2Map(info, "url"));
        System.out.println(str);
    }

    private String accids;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAccids() {
        return accids;
    }

    public void setAccids(String accids) {
        this.accids = accids;
    }
}
